package com.project.dao;

import com.project.entity.TeacherInfo;
import com.project.myBeans.TeacherInfoDetail;

import java.util.List;

public interface TeacherInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TeacherInfo record);

    int insertSelective(TeacherInfo record);

    TeacherInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TeacherInfo record);

    int updateByPrimaryKey(TeacherInfo record);

    //根据userId删除 by:WheelChen
    int deleteByUserId(Integer userid);

    //根据userId查询 by:WheelChen
    TeacherInfo selectByUserId(Integer userid);

    /**
     * author: WheelChen
     * date: 2017/7/15
     * function: 获取全体老师详细信息
     *
     * @param universityid 大学id
     * @return {list} 教师信息
     */
    List<TeacherInfoDetail> selectBatchByUniversityid(Integer universityid);

    /**
     * author: WheelChen
     * date: 2017/7/25
     * function: 根据系列表批量查找老师详细信息
     *
     * @param teacherInfo
     * @return
     */
    List<TeacherInfoDetail> selectDetailBatchBySchoolIdCondition(TeacherInfo teacherInfo);
}